home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
cuj1008.zip
/
1008068B
< prev
next >
Wrap
Text File
|
1992-05-28
|
962b
|
33 lines
/*
Postman's Sort (R) Version 1.0
Copyright (c) Robert Ramey 1991. All Rights Reserved
*/
#include "record.h"
/*********************************************************************
data structure and allocation variables for sublist headers
**********************************************************************/
/* structure for each list of partially sorted records */
typedef struct {
RECORD *memory; /* address of portion in memory */
FILE_SIZE disk; /* or when its in the overflow working file */
FILE_SIZE size; /* number of bytes in this sublist */
unsigned int count; /* number of records in memory */
unsigned long pcount;/* count of records written to work file */
} SUBLIST;
extern STACK *s_stack;
extern int rb_size, sb_size;
void
sublist_init();
RECORD *
sublist_input(SUBLIST *);
void
sublist_output(SUBLIST *, BOOLEAN);
SUBLIST *
sublist_allocate(unsigned int);
void
sublist_empty(int, SUBLIST *, int);